How to submit HTML form data to google spreadsheet?

In this post, I will explain how to submit HTML form data to google spreadsheet?. I have given the source code below.



Source Code :

1) code.gs



2) index.html